package tech.aistar.corejava.day07.singleton;

import tech.aistar.corejava.day07.singleton.MyDataSource;

/**
 * Created by 豆梦寒 on 2019/7/23.
 */
public class TestMyDataSource {
    public static void main(String[] args) {
        //获取实例
        MyDataSource m1 = MyDataSource.getInstance();
        MyDataSource m2 = MyDataSource.getInstance();

        System.out.println(m1==m2);

    }
}
